import request from "../utils/request";
import md5 from 'js-md5'
// 用户登录
export const login=(data)=> request({
        url:'/api/login',
        method:'POST',
        contentType: 'application/json; charset=utf-8',
        data:{
            username:data.username,
            password:md5('${data.password}studio-12123')
        }
})

// 用户注册
export function register(data){
    return request({
        url:'/api/register',
        method:'POST',
        contentType: 'application/json; charset=utf-8',
        data
    })
}

//展示用户信息
export function view(data){
    return request({
        url:'/api/client/view/'+data,
        method:'GET',
    })
}


